{% extends "base.html" %}
{% load staticfiles %}
{% block title %}
单子列表
{% endblock %}
{% block search_ticket %}
active
{% endblock %}
{% block content %}
{#    {% if goods_len %}#}
        <table class="table table-striped">
        <thead>
        <tr>
            <th scope="col" class="phone">#</th>
            <th scope="col">单号</th>
            <th scope="col" class="phone">机构</th>
            <th scope="col">总价</th>

        </tr>
        </thead>
        <tbody>
        {% for ticket in all_ticket %}
            <tr>
                <td class="phone">{{ forloop.counter }}</td>
                <td><a href="{% url 'store:ticket' ticket.id %}" target="_blank">{{ ticket.number }}</a></td>
                <td >{{ ticket.organization }}</td>
                <td>{{ ticket.create_time }}</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock %}